package com.xiyu.service.vo.setting.business.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;

import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 业务字段 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class SettingBusinessFieldBase {

    @Schema(description = "业务模块")
    @Range(max = 100000000, message = "业务模块最大不能超过100000000")
    private Integer businessModule;

    @Schema(description = "业务字段")
    @Size(max = 50, message = "业务字段长度不能超过50")
    private String fieldName;

    @Schema(description = "显示字段名称")
    @Size(max = 50, message = "显示字段长度不能超过50")
    private String showName;

    @Schema(description = "是否必填")
    private Boolean isMustFill;

    @Schema(description = "是否可以编辑字段名称")
    private Boolean isEditName;

    @Schema(description = "是否可以编辑必填")
    private Boolean isEditMustFill;

    @Schema(description = "是否显示")
    private Boolean isShow;

    @Schema(description = "是否可以编辑显示")
    private Boolean isEditShow;

}
